package com.sl.mes.db.itf.mm;




import com.sl.mes.db.vo.MmMo;
import com.sl.mes.db.vo.MmPickm;
import com.sl.mes.db.vo.MmPickmB;
import com.sl.mes.db.vo.MmPmo;

import java.util.List;

public interface IMmPickm {

    //通过主键查询主表的所有信息
    public MmPickm findParentVoById(String cpickmid);
    //通过主键查询体表的所有信息
    public List<MmPickmB> findChildrenVoById(String cpickmid);


    //通过主键进行删除
    public int deleteParentVoById(String cpickmid);
    public int deleteChildrenVoById(String cpickmid);


    //通过主键查询主表的所有信息
    public MmPickm findParentVoByCfirstbillrowid(String cfirstbillrowid);

    //通过主键查询主表的所有信息
    public MmPickm findParentVoByVsourcemorowid(String vsourcemorowid);


    //通过主键查询体表的所有信息
    public List<MmPickmB> findChildrenVoByCpickmid(String cpickmid);


    //添加备料计划
    public int  addParentVo(MmPickm mmPickm);
    public int  addChildrenVo(MmPickmB mmPickmB);

    //修改备料计划
    public int updateMmPickm(MmPickm mmPickm);
    public int updateMmPickmB(MmPickmB mmPickmB);


    public List<MmPickmB> findMmPickmBByCpickmid(String cpickmid);


    public  MmPickmB  findMmPickmBById(String cpickmbid);

    //查询所有待收料记录
    public List<MmPickm> findMmPickmRecords();
}
